function openIconTypes() {//打开上传影像
    var reservationsId = document.getElementById("reservationsId").value;
    var customerId = document.getElementById("customerId").value;
    var ids=reservationsId+","+customerId;
    var index = layer.open({
        type: 2,
        title: '请上传影像',
        area: ['60%', '70%'], //宽高
        fix: true, //不固定
        maxmin: true,
        content: Feng.ctxPath + '/doctorLooked/openIconTypes/' + ids
    });
    this.layerIndex = index;
}

$(function () {
    $(document).on('click', '.cp_img_delete2', function () {//删除照片
        var that = this;
        var id = $(that).parent().attr("id");
        $.ajax({
            url: Feng.ctxPath + "/doctorLooked/delteCancel4",
            type: "post",
            data: {"id": id},
            success: function (data) {
                $(that).parent().remove();
                Feng.success("删除成功！");
            },
            error: function (data) {
                alert("删除失败！");
            }
        });
    });
});